package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class HotelDictionary extends BaseDomain {

    private String sn;

    private String title;

    private String intro;

    public String getJson() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("sn", sn);
        map.put("title", title);
        map.put("intro", intro);
        return JSONUtil.toJSONString(map);
    }


}